package com.bicon.base.data.pojo.botu;

import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 红包表
 * </p>
 *
 * @author zhoutyianqi
 * @since 2018-07-25
 */
@TableName("lk_redpacket")
public class LkRedpacket extends Model<LkRedpacket> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private String id;
    /**
     * 应用名称
     */
    @TableField("app_id")
    private String appId;
    /**
     * 模块名称
     */
    private String module;
    /**
     * 业务名称  'redpacket'  
     */
    private String business;
    @TableField("order_no")
    private String orderNo;
    /**
     * 用户id
     */
    @TableField("user_id")
    private String userId;
    /**
     * 红包名称
     */
    @TableField("redpacket_name")
    private String redpacketName;
    /**
     * 红包金额
     */
    @TableField("redpacket_money")
    private BigDecimal redpacketMoney;
    /**
     * 红包数量
     */
    @TableField("redpacket_num")
    private Integer redpacketNum;
    /**
     * 红包类型 4.群拼手气 5 群普通  6 个人对个人
     */
    @TableField("redpacket_type")
    private String redpacketType;
    /**
     * 过期时间
     */
    @TableField("expiry_time")
    private Date expiryTime;
    @TableField("create_date")
    private Date createDate;
    @TableField("update_date")
    private Date updateDate;
    /**
     * 1.支付中 2.支付成功
     */
    @TableField("pay_state")
    private String payState;
    @TableField("logic_delete")
    private String logicDelete;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getModule() {
        return module;
    }

    public void setModule(String module) {
        this.module = module;
    }

    public String getBusiness() {
        return business;
    }

    public void setBusiness(String business) {
        this.business = business;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getRedpacketName() {
        return redpacketName;
    }

    public void setRedpacketName(String redpacketName) {
        this.redpacketName = redpacketName;
    }

    public BigDecimal getRedpacketMoney() {
        return redpacketMoney;
    }

    public void setRedpacketMoney(BigDecimal redpacketMoney) {
        this.redpacketMoney = redpacketMoney;
    }

    public Integer getRedpacketNum() {
        return redpacketNum;
    }

    public void setRedpacketNum(Integer redpacketNum) {
        this.redpacketNum = redpacketNum;
    }

    public String getRedpacketType() {
        return redpacketType;
    }

    public void setRedpacketType(String redpacketType) {
        this.redpacketType = redpacketType;
    }

    public Date getExpiryTime() {
        return expiryTime;
    }

    public void setExpiryTime(Date expiryTime) {
        this.expiryTime = expiryTime;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getPayState() {
        return payState;
    }

    public void setPayState(String payState) {
        this.payState = payState;
    }

    public String getLogicDelete() {
        return logicDelete;
    }

    public void setLogicDelete(String logicDelete) {
        this.logicDelete = logicDelete;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "LkRedpacket{" +
        "id=" + id +
        ", appId=" + appId +
        ", module=" + module +
        ", business=" + business +
        ", orderNo=" + orderNo +
        ", userId=" + userId +
        ", redpacketName=" + redpacketName +
        ", redpacketMoney=" + redpacketMoney +
        ", redpacketNum=" + redpacketNum +
        ", redpacketType=" + redpacketType +
        ", expiryTime=" + expiryTime +
        ", createDate=" + createDate +
        ", updateDate=" + updateDate +
        ", payState=" + payState +
        ", logicDelete=" + logicDelete +
        "}";
    }
}
